Optimization Catalog: How 4 bytes of padding make array clearing 49% faster

A surprising alignment quirk I learned the hard way: adding 4 bytes of struct padding makes Go’s array clearing 49% faster on Intel, all thanks to REP STOSQ.

View Post on Scour ↗

More from blog.andr2i.com on Scour.

Discussed on Hacker News